<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>水仙花</title>
    <script>
        let a = Number(prompt("请输入一个三位数的书"));
        let bai = parseInt(a / 100);
        let shi = parseInt((a - bai * 100) / 10);
        let ge = parseInt(a % 10);
        let he = bai ** 3 + shi ** 3 + ge ** 3;

        if (he == a) {
            console.log(true);
        } else {
            console.log(false);
        }

    </script>
</head>
<body>

</body>
</html>